package com.chance.cc.crawler.prod.command.schedule.news.hupu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.hupu.module.HupuModuleKeywordRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.hupu.module.HupuModuleKeywordTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.hupu.module.HupuModuleKeywordTraceTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;


public class HupuCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {


    public static void main(String[] args) {
//        delteCrawlerScheduleJob(HupuRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
//        delteCrawlerScheduleJob(HupuTraceCrawlerSchedulerJob.crawlerSchedulejob());


        republishCrawlerScheduleJob(HupuModuleKeywordRealtimeCrawlerSchedulerJob.crawlerSchedulejob());
        republishCrawlerScheduleJob(HupuModuleKeywordTraceCrawlerSchedulerJob.crawlerSchedulejob());
        republishCrawlerScheduleJob(HupuModuleKeywordTraceTraceCrawlerSchedulerJob.crawlerSchedulejob());
    }

    public static void republishCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_4);
    }

    public static void delteCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_4);
    }
}
